package com.yhf.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("contractor")
public class Contractor {
    @TableId(value = "cid",type = IdType.ASSIGN_UUID)
    private String cid;
    private String cname;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatetime;
    int status;
}
